package com.song.cloud.configBus.controlller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZhangGuisong
 * @Date 2021/2/25-20:56
 */
@RestController
@RefreshScope
public class configBusController {

    @Value("${server.port}")
    private String serverPort;
    @Value("${config.info}")
    private String configInfo;
    @GetMapping("/configInfo")
    public String  getConfigInfo(){
        return "configInfo信息"+"端口号"+configInfo;
    }
}
